package com.world.rickcloudendpoint.demo.listener;

import java.util.concurrent.TimeUnit;

/**
 * @description:
 * @author: jlsong
 * @date: 2022/06/08 07:34:34
 * @version: 1.0
 */
class SystemRelativeTimeProvider implements RelativeTimeProvider {
    @Override
    public long relativeTime(TimeUnit timeUnit) {
        return timeUnit.convert(System.nanoTime(), TimeUnit.NANOSECONDS);
    }
}